package com.swing.sky.common.basic;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BasicDAO<T> {
    int insert(T t);
    int deleteById(Long id);
    int batchDeleteByIds(Long[] ids);
    int update(T t);
    T getById(Long id);
    List<T> listByCondition(@Param("condition") T t, @Param("beginTime") String beginTime, @Param("endTime") String endTime);
}